package com.qzyh.esb.egsa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qzyh.esb.egsa.entity.MessageHeader;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qzyh.esb.egsa.entity.MessageHeaderField;
import com.qzyh.esb.egsa.utils.ResultObject;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 报文头信息表 服务类
 * </p>
 *
 * @author whq
 * @since 2023-11-02
 */
public interface IMessageHeaderService extends IService<MessageHeader> {

    IPage<MessageHeader> getList(IPage<MessageHeader> page, String name);

    ResultObject parseFile(MultipartFile file, String id);

    ResultObject<List<MessageHeaderField>> getMsgHeaderFieldById(String id);

    String getFileNameById(String id);

    XSSFWorkbook genExcel(String id);
}
